﻿using Domain.Entity.Out;
using Domain.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.Outstock_dService
{
    public class Outstock_dService : IOutstock_dService
    {
        private readonly IOutstock_dRepository outstock_DRepository;

        public Outstock_dService(IOutstock_dRepository outstock_DRepository)
        {
            this.outstock_DRepository = outstock_DRepository;
        }

        //添加出库明细
        public async Task<int> AddOutstock_d(Outstock_d outstock_D)
        {
            return await outstock_DRepository.AddOutstock_d(outstock_D);
        }


        //删除出库明细
        public async Task<int> DeleteOutstock_d(int outdid)
        {
            return await outstock_DRepository.DeleteOutstock_d(outdid);
        }


        //根据出库单id查询明细
        public async Task<List<Outstock_d>> GetOutstock_Ds(int outstockid)
        {
            return await outstock_DRepository.GetOutstock_Ds(outstockid);
        }


        //修改出库明细
        public async Task<int> UpdateOutstock_d(Outstock_d outstock_D)
        {
            return await outstock_DRepository.UpdateOutstock_d(outstock_D);
        }
    }
}
